package com.yao.shop.mapper;

import com.yao.shop.common.Page;
import com.yao.shop.pojo.ShopOrder;
import com.yao.shop.pojo.vo.ShopOrderVo;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface ShopOrderMapper {
    void save(ShopOrder order);

    List<ShopOrder> getByPage(Page<ShopOrder> page);

    Integer getCountByPage(Page<ShopOrder> page);

    ShopOrder get(Long id);

    void updateOrderStatus(ShopOrder order);

    List<ShopOrder> getMyOrder(Page<ShopOrderVo> page);

    Integer getMyOrderCount(Page<ShopOrderVo> page);

    void changeOrderStatus(ShopOrder order);
}
